package com.pt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("forum_reply")
public class ForumReply {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long topicId;
    
    private String content;
    
    private Long authorId;
    
    private Long replyToId;
    
    private Integer floor;
    
    private Integer likeCount = 0;
    
    private LocalDateTime createdTime;
    
    private Boolean isDeleted = false;
    
    // 非数据库字段
    @TableField(exist = false)
    private Boolean isLiked; // 当前用户是否已点赞
} 